
module("NetWork.Action.CDKeySmAction ", package.seeall)

local NetCmdActionBase = require("NetWork.Action").NetCmdActionBase

CDKeySmAction = NetCmdActionBase:new()

function CDKeySmAction:Action(bytes)
    local CDKeySm = require("Protol.commonMessage_pb").CDKeySm()
    CDKeySm:ParseFromString(bytes)
 	local UIWinMgr = require("UI.UIWinMgr").UIWinMgr
    if CDKeySm.code ~= 0 then
        
        UIWinMgr:OpenErrorNotice(CDKeySm.code)
        return
    else
        local str = UIWinMgr:GetIntTextByCode(50)
    	UIWinMgr:OpenNewGameNotice(str..CDKeySm.num)
    end
    local ClubModule = require("Module.ClubModule").ClubModule
    ClubModule.CDKeySm(CDKeySm)
end

require("NetWork.NetCmdSet").CmdSet[2102] = CDKeySmAction --注册处理对象